using StudentVideo.Shared.Constants;
using System.ComponentModel.DataAnnotations;

namespace StudentVideo.Shared.Dtos.Login;

public class LoginRequest {
   /// <summary>
   /// 账户
   /// </summary>
   /// <example>admin</example>
   [Required]
   [RegularExpression(Pattern.AccountPattern)]
   public string Account { get; set; } = null!;

   /// <summary>
   /// 密码
   /// </summary>
   /// <example>12345678</example>
   [Required]
   [RegularExpression(Pattern.PasswordPattern)]
   public string Pwd { get; set; } = null!;
}
